package org.mms.pojo.request;

import lombok.Data;
import org.mms.pojo.entity.News;

@Data
public class NewsRequest {
    private Long id;
    private String title;
    private String content;
    private String coverUrl;

    public News convert2News() {
        News news = new News();
        news.setId(id);
        news.setTitle(title);
        news.setContent(content);
        news.setCoverUrl(coverUrl);
        return news;
    }
}